package com.jiyun.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.util.Date;

/**
 * @projectName: day06_gengjiajun_p11
 * @package: com.jiyun.common.model
 * @className: question
 * @author: 耿嘉军
 * @date: 2023/8/7 15:50
 * @version: 1.0
 */
@Data
@ToString
public class Question {

    /**
     * 试题表
     */
    @TableId(value = "qid",type = IdType.AUTO)
    private Integer qid;
    private String  qname;
    private String types;
    private Integer uid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private Integer fenshu;
    private String parse;
    private String jiex;
    private String danx;
    @Transient@TableField(exist = false)
    private String tagIds;
}
